package cn.edu.nankai.bookstore.utils;

import java.io.IOException;
import java.util.Properties;

public class DbUtil {
    private static final Properties prop = new Properties();

    static{
        try {
            prop.load(DbUtil.class.getClassLoader().getResourceAsStream("jdbc.properties"));
        } catch (IOException e) {
            System.err.println("fail loading jdbc.properties");
        }
    }

    public static String driver=prop.getProperty("jdbc.driver");
    public static String url=prop.getProperty("jdbc.url");
    public static String user= prop.getProperty("jdbc.user");
    public static String password= prop.getProperty("jdbc.password");
}
